package com.example.listview2;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;

public class CustomViewGroup extends LinearLayout {
	public CheckBox cb;
	public TextView congViec;
	public TextView thoiGian;
	public CustomViewGroup(Context context)
	{
		super(context);
		
		//gán list.xml cho class này
		LayoutInflater li = (LayoutInflater)this.getContext().getSystemService(context.LAYOUT_INFLATER_SERVICE);
		li.inflate(R.layout.list, this, true);
		
		//lấy dl
		cb = (CheckBox)findViewById(R.id.checkCV);
		congViec = (TextView)findViewById(R.id.lblCV);
		thoiGian = (TextView)findViewById(R.id.lblTG);
	}
}
